package com.cebbank.sz.cebtemplate.constant;

import lombok.Getter;

/**
 * 返回
 * @author sucz
 * @create 2019/12/4 11:06
 */
@Getter
public enum ResponseEnum {

    /**
     * 成功
     */
    SUCCESS(200, "Success"),

    /**
     * 失败
     */
    FAILED(-1, "Failed");

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 消息
     */
    private String message;

    ResponseEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
